<?php
declare (strict_types = 1);

namespace app\admin\model\user;

use app\admin\model\store\Goods;
use app\common\model\TimeModel;
use think\Model;

/**
 * @mixin \think\Model
 */
class UserCollection extends TimeModel
{
    public function goodsCollection()
    {
        $list = ['id','goods_name','image','goods_price'];
        return $this->belongsTo(Goods::class,'goods_id','id')->field($list);

    }
}
